import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// import axios from 'axios'

import Vant from 'vant';
import 'vant/lib/index.css';
import { Divider } from 'vant';
import { Toast } from 'vant';
import { Dialog } from 'vant';



// axios.defaults.baseURL = '/api' // 开发本地代理
// axios.defaults.headers.post['Contenst-Type'] = 'application/json;'

Vue.config.productionTip = false

Vue.use(ElementUI);
Vue.use(Vant);
Vue.use(Divider);
Vue.use(Toast);
Vue.use(Dialog);

//全局变量判断是否为debug
// // todo 3.
// Vue.prototype.$isDebugFlag = true
Vue.prototype.$isDebugFlag = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')


